package com.xiejr.api.dto.order;

import com.xiejr.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("快递员表数据传输对象")
public class CourierDTO extends BaseEntity.BaseDTO {
    private static final long serialVersionUID = -41879405814533307L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不得为空")
    private Integer courierId;


    /**
     * 快递员名
     */
    @ApiModelProperty(value = "快递员名")
    @NotEmpty(message = "快递员名不得为空")
    private String courierName;


    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式")
    @NotEmpty(message = "联系方式不得为空")
    private String courierTel;


    /**
     * 快递名
     */
    @ApiModelProperty(value = "快递名")
    @NotEmpty(message = "快递名不得为空")
    private String expressName;


    /**
     * 忙碌状态
     */
    @ApiModelProperty(value = "忙碌状态")
    @NotNull(message = "忙碌状态不得为空")
    private Integer isFree;


}